package com.examination.system.administration;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;


import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

/**
 * @author 寇淇芮
 * @Date 2019/8/17 23:23
 */
@Data
@ToString
@Entity
@ApiModel
@Table(name=AdministrationTableName.COLLEGE_MAJOR_CLASSIFICATION)
@GenericGenerator(name = "jpa-uuid", strategy = "assigned")
public class CollegeMajorClassification implements Serializable {

    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
    @ApiModelProperty(value = "标识",example="id")
    private String id;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "父节点id")
    private String plate;
    @ApiModelProperty(value = "是否为目录")
    private String catalogue;
    @ApiModelProperty(value = "排序")
    private Integer  rank;
    @ApiModelProperty(value = "创建时间")
    private Date creationTime ;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
